#!/usr/bin/env bash
# Author: gotpl <631707329@qq.com>
# Maintainer: gotpl <631707329@qq.com>
# Created: 2023-11-06 09:50:24
# Modified: 2024-01-03 21:18:26

# emacs vterm add to .zshrc
# if [[ "$INSIDE_EMACS" = 'vterm' ]]; then
#     alias clear='vterm_printf "51;Evterm-clear-scrollback";tput clear'
# fi
# if [[ "$INSIDE_EMACS" = 'vterm' ]] \
#     && [[ -n ${EMACS_VTERM_PATH} ]] \
#     && [[ -f ${EMACS_VTERM_PATH}/etc/emacs-vterm-zsh.sh ]]; then
#     source ${EMACS_VTERM_PATH}/etc/emacs-vterm-zsh.sh
# fi
# lsp-bridge

conda activate emacs # python11
pip3 install -r requirements.txt
# importmagic
git clone --depth=1 -b master https://github.com/emacs-eaf/emacs-application-framework.git ~/.emacs.d/site-lisp/emacs-application-framework/
cd emacs-application-framework
chmod +x ./install-eaf.py
./install-eaf.py --install-core-deps -i pyqterminal --ignore-py-deps
